Skip to main content

CreateFileSystem

Description

call the CreateFileSystem interface to create a file system.

Request Method

POST

Request Path

/apsara/route/NAS/CreateFileSystem

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
StorageTypeBODYstringYesPerformancestorage type. Value: Performance: performance type Capacity: capacity type
DescriptionBODYstringNobalabalafile system description. Limit: is 2 to 128 English or Chinese characters in length. must start with upper and lower case letters or Chinese, and cannot be http:// and https://. can contain numbers, semicolons (:), underscores (_), or dashes (-).
EncryptTypeBODYintegerYes1whether the file system is encrypted. Use the KMS service hosting key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt it. Value: 0: No encryption 1: Encryption
ZoneIdBODYstringYescn-hangzhou-bzone ID. The usable area refers to the physical area where power and network are independent of each other in the same area. description File systems and ECS cloud servers are interoperable between different zones in the same region. It is recommended that the file system and the cloud server ECS belong to the same zone to avoid delays across zones.
regionIdBODYstringYesNo sample value for this parameter.region id
ProtocolTypeBODYstringYesNFSfile transfer protocol type. Value: NFS:NFS file transfer protocol. SMB:SMB file transfer protocol.
VolumeSizeBODYlongNo100general NAS capacity size. unit: Byte value: Capacity type: 0~10 PB Performance type: 0~1 PB
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring98696EF0-1607-4E9D-B01D-F20930B6****request ID.
FileSystemIdstring1ca404****file system ID to complete creation.

Example

Successful Response example

{
"RequestId":"98696EF0-1607-4E9D-B01D-F20930B6****",
"FileSystemId":"1ca404****"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}